<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>News about Tests</title>
</head>
<body>
{% if news_list %}
    <ul>
        {% for elem in news_list %}
        <li>
            <h2>{{ elem.title }}</h2>
            <h4>{{elem.post_date | date:"m-d-Y" }}</h4>
            <hr>
            <p>{{ elem.content }}</p>
        </li>
        {% endfor %}
    </ul>
{% else %}
<p>No news found</p>
{% endif %}
<hr>
<p>
    <a href="#">  << Go back</a>
</p>


</body>
</html>